﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace d1Project.Modules.Common.do4A.Models
{
    public class User4
    {
        [Key]
        public string Id { get; set; }

        /// <summary>
        /// 昵称 
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? BirthDay { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [StringLength(64)]
        public string MobilePhone { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [StringLength(64)]
        public string Email { get; set; }

        /// <summary>
        /// 性别： 1：男 0：女
        /// </summary>
        public string Sex { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        public string IdCard { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 是否有效 (1：有效，其它无效)
        /// </summary>
        [Required]
        public string IsAvailable { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public string CreateById { get; set; }

        /// <summary>
        /// 创建人名称
        /// </summary>
        public string CreateByName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 最后修改人Id
        /// </summary>
        public string UpdateById { get; set; }

        /// <summary>
        /// 最后修改人名称
        /// </summary>
        public string UpdateByName { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
    }
}